<template>
  <div>
    <div>id:{{ query.id }}</div>
    <div>标题:{{ query.title }}</div>
    <div>内容:{{ query.content }}</div>
    <div>id:{{ id }}</div>
    <div>标题:{{ title }}</div>
    <div>内容:{{ content }}</div>
  </div>
</template>
<script setup lang="ts">
import { toRefs } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()
const {query} = toRefs(route)
console.log(route);


defineProps(['id', 'title', 'content'])
</script>
<style></style>
